/**
 * 报表设计公司(2011)
 */
package net.abbp.report.view.cell.editor;

import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;

import net.abbp.report.view.cell.editor.CellEditorManager;
import net.abbp.report.view.cell.value.FormulaValue;
import net.abbp.report.view.cell.value.JsDataValue;

import com.reportgear.designer.action.edit.ClearValueAction;

/**
 * 子报表背景菜单
 * 
 * @version 1.0 2011-3-18
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since Report 1.0
 */
public class SubReportContextMenu extends JPopupMenu {
    private static final long serialVersionUID = 814395449139080747L;

    public SubReportContextMenu() {
        CellEditorManager manager = CellEditorManager.INSTANCE;

        this.add(new JMenuItem(manager.getCellAction(String.class)));
        this.addSeparator();
        this.add(new JMenuItem(manager.getCellAction(JsDataValue.class)));
        this.addSeparator();
        this.add(new JMenuItem(manager.getCellAction(FormulaValue.class)));
        this.addSeparator();
        this.add(new JMenuItem(new ClearValueAction()));
    }
}
